package actor

import "github.com/gin-gonic/gin"

func LoadRouter(e *gin.Engine) {
	v1 := e.Group("actor")
	{

		v1.POST("/create", CreateActor)
		v1.GET("/first", FirstActor)
		v1.GET("/get", GetActor)
		v1.DELETE("/delete", DeleteActor)
		v1.POST("/CreateEmptyField", CreateEmptyFieldPointerActor)
		v1.POST("/CreateNullString", CreateNullStringActor)

		// search
		v1.GET("/GroupByHaving", GroupByHaving)
		v1.GET("/Count", Count)
		v1.GET("/SkipLimit", SkipLimit)
		v1.GET("/Scopes", Scopes)

		// update
		v1.POST("/Save", Save)
		v1.POST("/Update", Update)
		v1.POST("/Updates", Updates)
		v1.POST("/UpdateSelectField", UpdateSelectField)
		v1.POST("/UpdateOmitField", UpdateOmitField)
		v1.POST("/UpdateWithoutHook", UpdateWithoutHook)
		v1.POST("/Expr", ExprOp)

		// delete
		v1.DELETE("/Delete", Delete)
		v1.DELETE("/DeleteBatch", DeleteBatch)
	}
}
